package ru.ssau.university.web.helper;

import java.util.ArrayList;
import java.util.List;

import ru.ssau.university.persistence.entity.Progress;

public class ProgressWrapper {
	private Progress progress;
	private String mark;
	private List<String> marks;
	
	public ProgressWrapper(Progress progress) {
		this.progress = progress;
		this.marks = initMarks();
		if (progress != null) {
			mark = progress.getMark();
		}
	}

	private List<String> initMarks() {
		List<String> marks = new ArrayList<String>();
		marks.add("-");
		marks.add("+");
		marks.add("Н");
		marks.add("2");
		marks.add("3");
		marks.add("4");
		marks.add("5");
		return marks;
	}

	public Progress getProgress() {
		return progress;
	}

	public void setProgress(Progress progress) {
		this.progress = progress;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public List<String> getMarks() {
		return marks;
	}

	public void setMarks(List<String> marks) {
		this.marks = marks;
	}
		
}
